﻿import QtQuick 2.0
import QtGraphicalEffects 1.0
Item {
    id:headerItem
    property url imgUrl: '老表_BL1ibsh_header_30.png'
    Rectangle {
        id: mask
        width: img.width
        height: img.height
        radius: img.width/2
        visible: false
    }
    Image {
        id: img
        source:imgUrl
        width: headerItem.width
        height: headerItem.height
        fillMode: Image.PreserveAspectCrop
        anchors.fill: parent
        layer.enabled: true
        smooth: true
        layer.effect: OpacityMask {
            maskSource: mask
        }
    }
}
